<?php

	/*
		----------------------------------
		Projet Lumina
		----------------------------------
		
		Classe Goldenbook, correspondant à la table goldenbook 
		de la base de données
		
		COHEN Jonathan
		2014
	*/
	
	class Goldenbook {
		var $id;
		var $iddead;
		var $username;
		var $content;
		
		function __construct($id, $iddead, $username, $content) {
			$this->setId($id);
			$this->setIdDead($iddead);
            $this->setUsername($username);
			$this->setContent($content);
		}
		
		
		/* ------------------------------
			GETTERS GÉNÉRIQUES
		*/
		function getId() {
			return $this->id;
		}
        
        function getIdDead() {
			return $this->iddead;
		}
        
        function getUsername() {
			return $this->username;
		}
        
		function getContent() {
			return $this->content;
		}
		
		
		/* ------------------------------
			SETTERS
		*/
		function setId($id) {
			$this->id = $id;
		}
		
        function setIdDead($iddead) {
			$this->iddead = $iddead;
		}
		
		function setUsername($username) {
			$this->username = $username;
		}

		function setContent($content) {
			$this->content = $content;
		}
	}

?>